package com.lecyon.farm.vo.copy;

import com.lecyon.farm.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Yao Zheng
 * @Date 2020-01-13
 */
@Data
@ApiModel(value = "复制数据Vo")
public class DuplicateVo extends BaseVo {

    @NotNull(message = "被复制记录的id不能为空")
    @Min(value = 1, message = "ID无效")
    @ApiModelProperty(name = "id", value = "被复制记录的主键ID", required = true)
    private Long id;

    @ApiModelProperty(name = "target_index", value = "新数据的唯一标识", required = true)
    @NotBlank(message = "目标数据标识不能为空")
    private String targetIndex;

    @ApiModelProperty(name = "target_index", value = "新数据的名称")
    private String targetName;

    @ApiModelProperty(name = "target_index", value = "新数据的描述")
    private String targetDescription;

}
